package com.hyh.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsPackage: com.hyh.myrule
 * @ClassName MySelfRule
 * @Author: hyhWTX
 * @CreateTime: 2023-04-11  12:04
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myRule(){
        return new RandomRule();
    }
}
